package com.example.ocr_ui.bean;

import android.os.Parcel;
import android.os.Parcelable;


/**
 * @author huyi
 */
public class PictureInfo implements Parcelable {
    private String originalPath;//原图路径
    private String compressPath;//压缩后的路径

    public PictureInfo() {
    }

    protected PictureInfo(Parcel in) {
        originalPath = in.readString();
        compressPath = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(originalPath);
        dest.writeString(compressPath);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<PictureInfo> CREATOR = new Creator<PictureInfo>() {
        @Override
        public PictureInfo createFromParcel(Parcel in) {
            return new PictureInfo(in);
        }

        @Override
        public PictureInfo[] newArray(int size) {
            return new PictureInfo[size];
        }
    };

    public String getOriginalPath() {
        return originalPath;
    }

    public void setOriginalPath(String originalPath) {
        this.originalPath = originalPath;
    }

    public String getCompressPath() {
        return compressPath;
    }

    public void setCompressPath(String compressPath) {
        this.compressPath = compressPath;
    }
}
